package com.rock.code.datacollconfig.buildenv.service.impl;

import com.rock.code.datacollconfig.buildenv.dao.TbCollConfSnmpDao;
import com.rock.code.datacollconfig.buildenv.domain.TbCollConfSnmp;
import com.rock.code.datacollconfig.buildenv.service.TbCollConfSnmpService;
import com.rock.code.datacollconfig.zabbix.dao.TbCollResConfDao;
import com.rock.code.datacollconfig.zabbix.domain.TbCollResConf;
import com.rock.code.datacollconfig.zabbix.service.TbCollResConfService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author piandu
 * @description Service实现
 * @date 2018/9/14 16/34
 */
@Service
public class TbCollConfSnmpServiceImpl implements TbCollConfSnmpService {

    @Resource
    private TbCollConfSnmpDao tbCollConfSnmpDao;


    @Override
    public  List<TbCollConfSnmp> getAllCollSnmpConf(Map map) {
        if(map!=null&&!map.isEmpty()){
            return tbCollConfSnmpDao.getAllCollSnmpConf(map);
        }
        return null;
    }

    @Override
    public TbCollConfSnmp getAllCollSnmpConfById(String id) {
        return  tbCollConfSnmpDao.getAllCollSnmpConfById(id);
    }
}